package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程班级信息对象 sc_course_cla
 * 
 * @author ruoyi
 * @date 2023-12-26
 */
public class ScCourseCla extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级id */
    private Long claId;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 班主任id */
    @Excel(name = "班主任id")
    private Long staffId;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String claName;

    /** 班级颜色 */
    @Excel(name = "班级颜色")
    private String claColor;

    /** 人数 */
    @Excel(name = "人数")
    private Long capacity;

    /** 每次上课学生扣除课时 */
    @Excel(name = "每次上课学生扣除课时")
    private BigDecimal everyStuLoseHour;

    /** 开班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date openDate;

    /** 结班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeDate;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 创建者 */
    private String createUser;

    /** 更新者 */
    private String lastUpdateUser;

    /** 更新时间 */
    private Date lastUpdateTime;

    public void setClaId(Long claId) 
    {
        this.claId = claId;
    }

    public Long getClaId() 
    {
        return claId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setClaName(String claName) 
    {
        this.claName = claName;
    }

    public String getClaName() 
    {
        return claName;
    }
    public void setClaColor(String claColor) 
    {
        this.claColor = claColor;
    }

    public String getClaColor() 
    {
        return claColor;
    }
    public void setCapacity(Long capacity) 
    {
        this.capacity = capacity;
    }

    public Long getCapacity() 
    {
        return capacity;
    }
    public void setEveryStuLoseHour(BigDecimal everyStuLoseHour) 
    {
        this.everyStuLoseHour = everyStuLoseHour;
    }

    public BigDecimal getEveryStuLoseHour() 
    {
        return everyStuLoseHour;
    }
    public void setOpenDate(Date openDate) 
    {
        this.openDate = openDate;
    }

    public Date getOpenDate() 
    {
        return openDate;
    }
    public void setCloseDate(Date closeDate) 
    {
        this.closeDate = closeDate;
    }

    public Date getCloseDate() 
    {
        return closeDate;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setLastUpdateUser(String lastUpdateUser) 
    {
        this.lastUpdateUser = lastUpdateUser;
    }

    public String getLastUpdateUser() 
    {
        return lastUpdateUser;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("claId", getClaId())
            .append("courseId", getCourseId())
            .append("staffId", getStaffId())
            .append("claName", getClaName())
            .append("claColor", getClaColor())
            .append("capacity", getCapacity())
            .append("everyStuLoseHour", getEveryStuLoseHour())
            .append("openDate", getOpenDate())
            .append("closeDate", getCloseDate())
            .append("memo", getMemo())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("lastUpdateUser", getLastUpdateUser())
            .append("lastUpdateTime", getLastUpdateTime())
            .toString();
    }
}
